package com.example.exercise.model;


import io.swagger.models.auth.In;
import lombok.Data;

import java.util.List;
//图书
@Data
public class Book {

    //图书id
    private String booId;
    //图书名字
    private String name;
    //图书出生年份
    private int year;
    //图书类别
    private BookType bookType;
    //图书唯一ISBN
    private String ISBN;

    public Book(String booId, String name, int year, BookType bookType, String ISBN) {
        this.booId=booId;
        this.bookType=bookType;
        this.name=name;
        this.ISBN=ISBN;
        this.year=year;


    }
}
